@import url(https://fonts.googleapis.com/css?family=Open+Sans:600,300);

$brown: #786450;

$bg-color-1:#eebe6c;
$bg-color-2: #ca7c4e;

$image-side:70px;

html,
body{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.frame{
    position: relative;
    @extend body;
    // border: 1px solid black;
    width: 400px;
    height: 400px;
    box-shadow: 1px 2px 10px rgba(0,0,0,0.3);
    // 兼容性考虑
    background-color: $bg-color-2;
    background:-webkit-linear-gradient(bottom left, $bg-color-1 0%, $bg-color-2 100%);
    background: -moz-linear-gradient(bottom left, $bg-color-1 0%, $bg-color-2 100%);
    background: -o-linear-gradient(bottom left, $bg-color-1 0%, $bg-color-2 100%);
    background: linear-gradient(to top right, $bg-color-1 0%, $bg-color-2 100%);
    // 适配老版本浏览器，老版本浏览器不支持linear-gradient
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#EEBE6C', endColorstr='#CA7C4E',GradientType=1 ); 
    color: $brown;

    font-family: "Open Sans", Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.center{
    position: absolute;
    // border: 1px solid;
    top:50px;
    left: 40px;
    width: 320px;
    height: 299px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 10px 10px 15px rgba(0,0,0,0.3);
}

.profile{
    float: left;
    width: 200px;
    height: 320px;
    text-align: center;
    
    .image{
        position: relative;
        width: 70px;
        height: 70px;
        // border-radius: 50%;
        margin: 38px auto 0 auto;

        .circle-1{
            position: absolute;
            // border: 1px solid $brown;
            border-width: 1px;
            border-style: solid;
            border-color: $brown $brown $brown transparent;
            border-radius: 50%;
            top: -3px;
            left: -3px;
            box-sizing: border-box;
            height: 76px;
            width: 76px;
            transition: all 1.5s ease-in-out
        }

        .circle-2{
            @extend .circle-1;
            border-color: $brown transparent $brown $brown;
            width: 82px;
            height: 82px;
            top: -6px;
            left: -6px;

        }

        img{
            display: block;
            width: 100%;
            border-radius: 50%;
            background-color: #F5E8DF;
            transition: all 1.5s ease-in-out
        }

        &:hover{
            cursor: pointer;

            .circle-1{
                transform: rotate(360deg);
            }
            .circle-2{
                transform: rotate(-360deg);
            }
            img{
                transform: rotate(360deg);
            }
        }
    }

    .name {
        font-size: 16px;
        font-weight: 600;
        margin-top: 20px;
    }

    .job {
        font-size: 11px;
        line-height: 15px;
    }

    .actions{
        margin-top: 30px;
        .btn{
            display: block;
            width: 120px;
            height: 30px;
            margin:0 auto 10px auto;
            background-color: transparent;
            border: 1px solid $brown;
            border-radius: 15px;
            color: $brown;
            font-weight: 600;
            font-size: 12px;
            box-sizing: border-box;
            transition: all .5s ease-in-out;

            &:hover{
                cursor: pointer;
                background-color: $brown;
                color: #fff;
            }
        }
    }
}

.stats{
    float: left;

    .box{
        box-sizing: border-box;
        width: 120px;
        height: 99px;
        background-color: #f5e8df;
        text-align: center;
        padding-top: 28px;
        transition: all .4s ease-in-out;

        &:nth-child(2){
            margin: 1px 0;
        }

        span{
            display: block;
        }

        .value{
            font-size: 18px;
            font-weight: 600;
        }

        .parameter{
            font-size: 11px;
        }

        &:hover{
            background-color: #E1CFC2;
            cursor: pointer;
        }
    }
}

